package com.zx.onlineeducation.service.edu.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zx.onlineeducation.service.edu.entity.CourseDO;
import com.zx.onlineeducation.service.edu.entity.TeacherDO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zx.onlineeducation.service.edu.entity.vo.CourseQueryVO;
import com.zx.onlineeducation.service.edu.entity.vo.TeacherQueryVO;

import java.util.List;

/**
 * <p>
 * 讲师 服务类
 * </p>
 *
 * @author 郑雪
 * @since 2022-01-07
 */
public interface TeacherService extends IService<TeacherDO> {

    /**
     * 查询讲师分页数据列表
     *
     * @param current 当前页
     * @param size 每页显示条数
     * @param teacherQueryVO 讲师查询对象 {@link TeacherQueryVO}
     * @return 分页对象 {@link Page} {@link TeacherDO}
     * @author 郑雪
     * @since 2022-01-25
     */
    Page<TeacherDO> page(Long current, Long size, TeacherQueryVO teacherQueryVO);

    /**
     * 添加讲师
     *
     * @param teacherDO 讲师数据对象 {@link TeacherDO}
     * @return 成功true，失败false
     * @author 郑雪
     * @since 2022-01-25
     */
    boolean saveTeacher(TeacherDO teacherDO);

    /**
     * 修改讲师
     *
     * @param teacherDO 讲师数据对象 {@link TeacherDO}
     * @return 成功true，失败false
     * @author 郑雪
     * @since 2022-01-25
     */
    boolean updateTeacherById(TeacherDO teacherDO);

    /**
     * 删除讲师
     *
     * @param id 讲师ID
     * @return 成功true，失败false
     * @author 郑雪
     * @since 2022-01-25
     */
    boolean removeTeacherById(String id);

    /**
     * 获取名师数据列表
     *
     * @param teacherLimit 名师显示条数
     * @return TeacherDO对象的List集合 {@link TeacherDO}
     * @author 郑雪
     * @since 2022-01-25
     */
    List<TeacherDO> getFamousTeacherList(Integer teacherLimit);
}
